/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package infoplaces2;

import java.awt.image.RenderedImage;
import java.util.ArrayList;

/**
 *
 * @author Andre Alvarado
 */
public abstract class PanoramicImage {
    
//    PanoramicImage(images: RenderedImage[])
//    fetch(x: double, y: double, z: double): RGBColor
//    fetch(azimuth: double, zenith: double): RGBColor
//    getImage(index: int)
//    imageCount(): int
    
    protected ArrayList<RenderedImage> images = new ArrayList<>();
    
    protected PanoramicImage(ArrayList<RenderedImage> images){
        this.images = images;
    }
    
    public abstract int fetch(double x, double y, double z);
    
    public abstract int fetch(double azimuth, double zenith);
    
    public RenderedImage getImage(int index){
        return images.get(index);
    }
    
    public int imageCount(){
        return images.size();
    }
    
}
